﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCode.aspx.cs" Inherits="PerceptiveMCAPI_Test.TestCode" %>

<%@ Register Src="Controls/show/show_errors.ascx" TagName="show_errors" TagPrefix="uc1" %>
<%@ Register Src="Controls/show/show_DefaultResponse.ascx" TagName="show_DefaultResponse"
   TagPrefix="uc2" %>
<%@ Register Src="Controls/show/show_apikeys.ascx" TagName="show_apikeys" TagPrefix="uc3" %>
<%@ Register Src="Controls/show/show_listBatch.ascx" TagName="show_listBatch" TagPrefix="uc4" %>
<%@ Register Src="Controls/show/show_campaignStats.ascx" TagName="show_campaignStats"
   TagPrefix="uc5" %>
<%@ Register src="Controls/show/show_listMemberInfo.ascx" tagname="show_listMemberInfo" tagprefix="uc6" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
   <title>PerceptiveMCAPI Test by Code</title>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
   <form id="form1" runat="server">
   <div>
      <span style="font-weight: bold;">
         <br />
         Method to Test: </span>
      <asp:DropDownList ID="ddlMethods" runat="server" AppendDataBoundItems="True">
         <asp:ListItem Selected="True" Value="-">-- Select --</asp:ListItem>
      </asp:DropDownList>
      &nbsp;&nbsp;
      <asp:Button ID="btnRun" runat="server" Text="Run Test" OnClick="btnRun_Click" />
      &nbsp;&nbsp;&nbsp;<asp:Button ID="btnSettings" runat="server" Text="See Settings"
         OnClick="btnSettings_Click" />
      &nbsp;<br />
      <asp:Label ID="lblTestName" runat="server" />
      <hr />
      <b>Request:</b><br />
      <asp:Label ID="lblRequest" runat="server" /><hr />
      <b>Unformatted Response:</b><br />
      <asp:Label ID="lblResponse" runat="server" />
      <hr />
      <uc1:show_errors ID="show_errors1" runat="server" />
      <b>Formatted Response:</b><br />
      <%--  --%><br />
      <uc2:show_DefaultResponse ID="show_DefaultResponse1" runat="server" />
      <asp:GridView ID="gvOutput" runat="server" CellPadding="4" ForeColor="#333333" GridLines="Both"
         ShowFooter="false">
         <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
         <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
         <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
         <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
         <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
         <EditRowStyle BackColor="#999999" />
         <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
      </asp:GridView>
       <asp:Detailsview ID="dvOutput" runat="server" CellPadding="4" ForeColor="#333333" GridLines="None" 
         HeaderText="Detail" >
         <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
          <CommandRowStyle BackColor="#D1DDF1" Font-Bold="True" />
         <RowStyle BackColor="#EFF3FB" />
          <FieldHeaderStyle BackColor="#DEE8F5" Font-Bold="True" Width="150px" />
         <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
         <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
         <EditRowStyle BackColor="#2461BF" />
         <AlternatingRowStyle BackColor="White" />
      </asp:Detailsview>

      <%-- User control testing goes HERE --%>
      <uc3:show_apikeys ID="show_apikeys1" runat="server" Visible="false" />
      <uc6:show_listMemberInfo ID="show_listMemberInfo1" runat="server" />
      <uc5:show_campaignStats ID="show_campaignStats1" runat="server" />
      <uc4:show_listBatch ID="show_listBatch1" runat="server" />
      <%--  --%>
   </div>
   </form>
</body>
</html>
